var express = require('express');
var router = express.Router();
const UserService = require("../services/user-service.js");

// post 请求 "/api/users/login.do"
router.post("/login.do", UserService.login);

// post 请求 "/api/users/register.do"
router.post("/register.do", UserService.register);

module.exports = router;
